#include "udp_server.hpp"

// ./udo_server port
int main(int argc, char* argv[])
{
  if (argc != 2){
    std::cerr << "Usage:" << argv[0] << "port:" << std:: endl;
    exit(-1);
  }
  //std::string ip = "127.0.0.1";
  //std::string ip = "121.5.7.215";
  int port = atoi(argv[1]);
  //UdpServer* usr = new UdpServer(ip, port);
  UdpServer* usr = new UdpServer(port);
  usr->UdpServerInit();
  usr->UdpServerStart();

  delete usr;

  return 0;
}
